C89 Fix in kml.c
authorrobertl <robertl>
Wed, 21 Nov 2007 15:08:10 +0000 (15:08 +0000)
committerrobertl <robertl>
Wed, 21 Nov 2007 15:08:10 +0000 (15:08 +0000)
kml.c

diff --git a/kml.c b/kml.c
index 5c3d125162e271cab15e183f485dd4fc48fcf682..20f9e99207bf45c4f656be73bd9f5938d86082a2 100644 (file)
--- a/kml.c
+++ b/kml.c
@@ -769,6 +769,9 @@ char * kml_gc_mkstar(int rating)
 static void kml_geocache_pr(const waypoint *waypointp)
 {
        char *p, *is;
+       double lat = waypointp->latitude;;
+       double lng = waypointp->longitude;
+// optionally "fuzz" lat/lng here.
 
        kml_write_xml(1, "<Placemark>\n");
 
@@ -824,9 +827,6 @@ static void kml_geocache_pr(const waypoint *waypointp)
        kml_write_xml(-1, "</ExtendedData>\n");
 
        // Location
-       double lat = waypointp->latitude;;
-       double lng = waypointp->longitude;
-// optionally "fuzz" lat/lng here.
        kml_write_xml(1, "<Point>\n");
        kml_write_xml(0, "<coordinates>%f,%f,%f</coordinates>\n",
                lng, lat,